import Vue from "vue";
import state from "../store/state";
import VueI18n from "vue-i18n";
import zhCN from "./zh-CN";
import ugCN from "./ug-CN";

Vue.use(VueI18n);
const i18n = new VueI18n({
    locale: state.locale,
    messages: {
        "zh-CN": zhCN,
        "ug-CN": ugCN,
    },
});

Vue.prototype._i18n = i18n;
export default i18n;